<!-- Used to display bets --> 

<tr class="tr_<%=(@odd == 0 ? (@odd = @odd + 1) : (@odd = @odd -1)) %>">
	<td>
		<%=image_tag "leagues/" + bet.match.league.cid.to_s + ".png"%>
	</td>
	<td <%= bet_html_class bet,bet.match.home_team_id %>>
		<%= team_detail bet.match.home_team %>
		<p class="boldfont"><%= bet.match.home_point %></p>
	</td>
	<td <%= bet.match.home_team_id %>><%= point_spread bet.match,bet.match.home_team %></td>	
	<td <%= bet_html_class bet,bet.match.away_team_id %>>
		<%= team_detail bet.match.away_team %>
		<p class="boldfont"><%= bet.match.away_point %></p>
	</td>
	<td align="center" style="font-size:10px"><%= bet_status bet %></td>
</tr>
<tr>
	 
  <td colspan=5 style="text-align:left">
	 <div class="expander-small">
      	<%= render :partial=>'newsfeeds/feed_link',:locals=>{:sid=>bet.match.id}%>
		 <span id="newsfeeds_indicator_<%=bet.match.id%>" style="margin-left:180px;display:none">
	     	<%=image_tag"indicator.gif"%>
	    </span>
	    <div id="render_newsfeeds_layout_<%=bet.match.id%>" style="text-align:left;position:relative;"> 
			
	    </div>
    </div>
	<div class="bottom_border">&nbsp;</div>
	<%if Time.now < Match.find_by_id(bet.match.id).begin_at%>
	    <div class="expander-small">	  
	    <span id="friends_bet_expander_<%=bet.match.id%>"></span>  
	      	<%= render :partial=>'friends_bet/link',:locals=>{:sid=>bet.match.id}%>
			 <span id="friends_bet_indicator_<%=bet.match.id%>" style="margin-left:180px;display:none">
		     	<%=image_tag"indicator.gif"%>
		    </span>
		    <div id="render_friends_bet_layout_<%=bet.match.id%>" style="text-align:left;position:relative;"> 
		    </div>
	    </div>
		<div class="bottom_border" >&nbsp;</div>
	<%end%>
    <div class="expander-small" >
      	<%= render :partial=>'comments/comment_link',:locals=>{:sid=>bet.match.id}%>
	  	<span id="comments_indicator_<%=bet.match.id%>" style="margin-left:180px;display:none">
      		<%=image_tag"indicator.gif"%>
    	</span>
	    <div id="render_comments_layout_<%=bet.match.id%>" style="text-align:left;position:relative;"> 
		
	    </div>
    </div>
  </td>
</tr>

